package com.briup.estore.userAPI.web.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author adam
 * @date 2022/1/14
 */
@Controller
public class IndexController {


    @GetMapping(value = {"/", "/toIndex"})
    public String toIndex(HttpServletRequest request) {

        return "index";
    }

    @GetMapping(value = {"/error"})
    public String toError() {
        return "error";
    }


}
